import request from '@/utils/request'

// 查询领料清单明细列表
export function listPickingListDetail(query) {
  return request({
    url: '/mes/pickingListDetail/list',
    method: 'get',
    params: query
  })
}

// 查询领料清单明细详细
export function getPickingListDetail(id) {
  return request({
    url: '/mes/pickingListDetail/' + id,
    method: 'get'
  })
}

// 新增领料清单明细
export function addPickingListDetail(data) {
  return request({
    url: '/mes/pickingListDetail',
    method: 'post',
    data: data
  })
}

// 修改领料清单明细
export function updatePickingListDetail(data) {
  return request({
    url: '/mes/pickingListDetail',
    method: 'put',
    data: data
  })
}

// 删除领料清单明细
export function delPickingListDetail(id) {
  return request({
    url: '/mes/pickingListDetail/' + id,
    method: 'delete'
  })
}
